unit loading;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ComCtrls, ExtCtrls;

type
  TForm4 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form4: TForm4;

implementation

{$R *.dfm}
uses data,GIFImg,main;
procedure TForm4.FormCreate(Sender: TObject);
var
gif: TGIFImage;
begin
BorderStyle   :=   bsNone;
Brush.Style   :=   bsClear;
gif := TGIFImage.Create;
gif.LoadfromFile(ROOT+'img\loading.gif');
gif.Animate := True;
with TImage.Create(Self) do begin
    Parent := Self;
    Left := 0;
    Top := 0;
    width:=450;

    Picture.Assign(gif);
end;
gif.Free;
end;
end.
